//
//  SISSExcelLeftTableViewCell.m
//  SISSAPP
//
//  Created by 袁应荣 on 2018/8/6.
//  Copyright © 2018年 优房网. All rights reserved.
//

#import "SISSExcelLeftTableViewCell.h"

@interface SISSExcelLeftTableViewCell ()

/// bottomLine
@property (weak, nonatomic) UIView *bottomLine;
/// verticalLine
@property (weak, nonatomic) UIView *verticalLine;

@end
@implementation SISSExcelLeftTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [self initUI];
    [self initConstraint];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self initUI];
        [self initConstraint];
    }
    return self;
}

- (void)initUI {
    
    [self setBackgroundColor:COLOR(0xECEDF3)];
    [self.contentView setBackgroundColor:COLOR(0xECEDF3)];
    
    UILabel *label = [[UILabel alloc] init];
    label.textColor = MAIN_TEXT_COLOR;
    label.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:label];
    self.customLabel = label;
    
    UIView *bottomLine = [[UIView alloc] init];
    bottomLine.backgroundColor = [UIColor darkGrayColor];
    [self.contentView addSubview:bottomLine];
    self.bottomLine = bottomLine;
    
    UIView *verticalLine = [[UIView alloc] init];
    verticalLine.backgroundColor = [UIColor darkGrayColor];
    [self.contentView addSubview:verticalLine];
    self.verticalLine = verticalLine;
    
}

- (void)initConstraint {
    
    WeakSelf
    [self.customLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
    
    [self.bottomLine mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(weakSelf.contentView);
        make.height.equalTo(@1);
    }];
    
    [self.verticalLine mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.equalTo(weakSelf.contentView);
        make.width.equalTo(@1);
    }];
}

@end
